<#macro header _title="">
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>${_title}</title>
		<link href="${base}/resources/style/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${base}/resources/script/jquery.js"></script>
		<#nested>
	</head>
</#macro>

<#macro pagerCode>
	<div class="list">
		<#if (pager.result?size > 0)>
			<div class="pagerBar">
<!--				<div class="delete">
					<input type="button" id="searchButton" class="button" value="批量删除" />
				</div>-->
				<div class="pager">
					<script type="text/javascript">
					$().ready( function() {
						$("#pager").pager({
							pagenumber: ${pager.pageNumber},
							pagecount: ${pager.pageCount},
							buttonClickCallback: gotoPage
						});
					});
					var gotoPage = function(pNum) {
						$("#pageNumber").val(pNum);
						$("#listForm").submit();
					};
					</script>
					<span id="pager"></span>
					<input type="hidden" name="pageNumber" id="pageNumber" value="${pager.pageNumber}" />
					<input type="hidden" name="orderBy" id="orderBy" value="${pager.orderBy}" />
					<input type="hidden" name="orderType" id="order" value="${pager.orderType}" />
				</div>
			<div>
		<#else>
			<div class="noRecord">没有找到任何记录!</div>
		</#if>
	</div>
</#macro>
